package com.ryskoo.permission.managerrolerel.domain;

import com.ryskoo.framework.core.bean.BasicPO;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "PMS_MANAGER_ROLE_REL")
public class ManagerRoleRelPO extends BasicPO {
    private static final long serialVersionUID = 833386896216993607L;
    /**
     * 管理员ID
     */
    @Column(name = "manager_id", columnDefinition = "char", length = 32, nullable = false)
    private String managerId;

    /**
     * 角色id
     */
    @Column(name = "role_id", columnDefinition = "char", length = 32, nullable = false)
    private String roleId;

    public String getManagerId() {
        return managerId;
    }

    public void setManagerId(String managerId) {
        this.managerId = managerId;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    @Override
    public String toString() {
        return new StringBuffer(super.toString())
                .append("ManagerRoleRelPO [managerId=").append(managerId)
                .append(", roleId=").append(roleId).append("]").toString();
    }
}
